package generatedClasses;

public class StrutsConfigCreator
{
  protected static String nl;
  public static synchronized StrutsConfigCreator create(String lineSeparator)
  {
    nl = lineSeparator;
    StrutsConfigCreator result = new StrutsConfigCreator();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "";
  protected final String TEXT_2 = NL;
  protected final String TEXT_3 = NL;
  protected final String TEXT_4 = " ";
  protected final String TEXT_5 = NL;
  protected final String TEXT_6 = NL;
  protected final String TEXT_7 = NL;
  protected final String TEXT_8 = NL;
  protected final String TEXT_9 = NL;
  protected final String TEXT_10 = NL;
  protected final String TEXT_11 = NL;
  protected final String TEXT_12 = NL;
  protected final String TEXT_13 = NL;
  protected final String TEXT_14 = NL;
  protected final String TEXT_15 = NL;
  protected final String TEXT_16 = NL;
  protected final String TEXT_17 = NL;
  protected final String TEXT_18 = NL + "\t\t\t\t";
  protected final String TEXT_19 = NL;
  protected final String TEXT_20 = NL;
  protected final String TEXT_21 = NL;
  protected final String TEXT_22 = NL;
  protected final String TEXT_23 = NL;
  protected final String TEXT_24 = NL;
  protected final String TEXT_25 = NL;
  protected final String TEXT_26 = NL;
  protected final String TEXT_27 = NL;
  protected final String TEXT_28 = NL;
  protected final String TEXT_29 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    stringBuffer.append(TEXT_1);
    stringBuffer.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>");
    stringBuffer.append(TEXT_2);
    stringBuffer.append(TEXT_3);
    stringBuffer.append("<!DOCTYPE struts-config PUBLIC \"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN\"");
    stringBuffer.append(TEXT_4);
    stringBuffer.append(TEXT_5);
    stringBuffer.append("	\"./dtd/struts-config_1_3.dtd\">");
    stringBuffer.append(TEXT_6);
    stringBuffer.append(TEXT_7);
    stringBuffer.append("<struts-config>");
    stringBuffer.append(TEXT_8);
    stringBuffer.append("	<form-beans>");
    stringBuffer.append(TEXT_9);
    stringBuffer.append("		<form-bean name=\"AddContactValidationForm\" type=\"struts.actionForm.AddContactValidationForm\"/>");
    stringBuffer.append(TEXT_10);
    stringBuffer.append("	</form-beans>");
    stringBuffer.append(TEXT_11);
    stringBuffer.append("	<action-mappings>");
    stringBuffer.append(TEXT_12);
    stringBuffer.append(TEXT_13);
    stringBuffer.append("		<action path=\"/ContactCreation\" forward=\"/pages/contactCreation.jsp\" />");
    stringBuffer.append(TEXT_14);
    stringBuffer.append(TEXT_15);
    stringBuffer.append("		<action path=\"/AddContact\" ");
    stringBuffer.append(TEXT_16);
    stringBuffer.append("				type=\"struts.servletAction.AddContactAction\"");
    stringBuffer.append(TEXT_17);
    stringBuffer.append("				name=\"AddContactValidationForm\" scope=\"request\" ");
    stringBuffer.append(TEXT_18);
    stringBuffer.append(TEXT_19);
    stringBuffer.append("				input=\"/pages/contactCreation.jsp\">");
    stringBuffer.append(TEXT_20);
    stringBuffer.append("			<forward name=\"success\" path=\"/pages/success.jsp\" />");
    stringBuffer.append(TEXT_21);
    stringBuffer.append("			<forward name=\"error\" path=\"/pages/error.jsp\" />");
    stringBuffer.append(TEXT_22);
    stringBuffer.append("		</action>");
    stringBuffer.append(TEXT_23);
    stringBuffer.append("	</action-mappings>");
    stringBuffer.append(TEXT_24);
    stringBuffer.append(TEXT_25);
    stringBuffer.append("<!-- ========== Ressources de definitions de messages =========================== -->");
    stringBuffer.append(TEXT_26);
    stringBuffer.append("	<message-resources parameter=\"Resources\" />");
    stringBuffer.append(TEXT_27);
    stringBuffer.append(TEXT_28);
    stringBuffer.append("</struts-config>");
    stringBuffer.append(TEXT_29);
    return stringBuffer.toString();
  }
}
